<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="root">
			<div>
				姓名：{{user.name}}
			</div>
			<div>
				年龄：{{user.age}}
			</div>
			<div>
				学校：{{school.name}}
			</div>
			<div>
				地址：{{school.address}}
			</div>
		</div>
		
		<script type="text/javascript">
			const vm = new Vue({
				el: "#root",
				data: {
					user: {
						name: '张三',
						age: 18
					},
					school: {
						name: '清华',
						address: '北京'
					}
				}
			})
		</script>
	</body>
</html>